package com.mdxx.xczd.ui.contract;

import com.mdxx.xczd.bean.BarCodeBeanResult;
import com.mdxx.xczd.bean.GetUserResult;
import com.mdxx.xczd.bean.UserBean;
import com.mdxx.xczd.bean.UserBeanResult;
import com.mdxx.xczd.ui.base.BaseModel;
import com.mdxx.xczd.ui.base.BasePresenter;
import com.mdxx.xczd.ui.base.BaseView;

import java.util.List;

import rx.Observable;

/**
 * Created by MD-02 on 2017/1/21.
 */

public interface SelectUserContract {
    interface Model extends BaseModel {
        Observable<GetUserResult> getUserData();

        Observable<UserBeanResult> getLoginData(String username, String password);
    }

    interface View extends BaseView {

        void returnUserData(List<UserBean> userBeanList);

        void returnLoginData();

    }

    abstract static class Presenter extends BasePresenter<SelectUserContract.View, SelectUserContract.Model> {
        public abstract void getUserRequest();

        public abstract void getLoginRequest(String username, String password);
    }
}
